/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2024-02-24 00:32:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-03-10 19:19:05
 */
import request from '@projectName/utils/request'

export function getAuthWechat(data) {
  return request({
    url: '/officialaccount/basics/auth-wechat',
    method: 'post',
    params: data
  })
}

/**
 * 获取微信授权地址
 * @param {*} data
 * @returns
 */
export function getAuthUrl(data) {
  return request({
    url: '/officialaccount/basics/auth-url',
    method: 'post',
    params: data
  })
}

export function fetchList(data) {
  return request({
    url: '/api/wx/account/fans/list',
    method: 'post',
    params: data
  })
}

export function createRow(data) {
  return request({
    url: '/api/wx/account/fans/add',
    method: 'post',
    data
  })
}

export function updateRow(data) {
  return request({
    url: '/api/wx/account/fans/update',
    method: 'post',
    data
  })
}
export function deleteRow(data) {
  return request({
    url: '/api/wx/account/fans/delete',
    method: 'post',
    params: data
  })
}

export function syncAccountFans(data) {
  return request({
    url: '/api/wx/account/fans/syncAccountFans',
    method: 'post',
    data
  })
}

export function sendMsg(data) {
  return request({
    url: '/api/wx/account/fans/sendMsg',
    method: 'post',
    data
  })
}
